ViewPlus VDS Commands:

** Note: Usage of these commands can be found in the democombo.dsp demo.


 -------- Important! ---------------------
 The DLLS always needs to be in the same directory of your VDS app (EXE)
 The DLLs dont like to be forced to load from another directory than the one your EXE is. Adding a @path(%0) in front with cause an Error 42 if the EXE is a folder containing a "."

Commands:

::::::
Class
::::::
This commands needs to be called before anything else. This tells the DLL on what app is needs to draw the viewplus object.

viewplus class,<class name of your VDS app>

:::
ADD
:::
This will create and show the viewplus object on your VDS app form

viewplus add,<top>,<left>,<hsize>,<vsize>

::::::::::
LoadImage
::::::::::
Loads an image into the viewer.

viewplus loadimage,<path of imgage>

:::::::::::
ResetImage
:::::::::::
This quickly resets the image back to original state after zooming.

viewplus reset

:::::::::::::::::::
SetBackgroundColor
:::::::::::::::::::
Sets the overall background color of ViewPlus. R,G,B (ex. 255,255,255)

Example:
viewplus bkcolor,215,255,255

:::::
Show
:::::
Shows the viewplus object
** Note: This is note needed initially when you do a ADD command.

viewplus show

:::::
Hide
:::::
Hides the viewplus object. 

viewplus hide

:::::::::::::::
SetAsWallpaper 
:::::::::::::::
Sets the loaded image to users desktop wallpaper.

::::::::::::
RotateImage 
::::::::::::
Rotates the image to the specified degrees. 

Example:
viewplus rotate,90

:::::::::::
EnableZoom
:::::::::::
This will enable to disable the zoom feature. When enabled, you will see the zoom cursor. True is enabled, false is disabled.

viewplus zoom,<1 = enabled or 0 = disabled>

:::::::::::::
ImageAutoFit
:::::::::::::
Set the loaded images to autofit to the plugin area. 1 is enabled, 2 is disabled and will show the image original size with scrollbars.

viewplus autofit,<1 = enabled or 0 = disabled>

::::::::::
Saveimage
::::::::::
This will show a dialog box allowing users to save the displayed image in many different options. Advanced button on dialog will show advanced saving properties for the format they choose. Not all image formats have advanced properties.

viewplus saveimage

::::::::::::::
SetTransition
::::::::::::::
Sets the transition from one image display, to the next loaded. Integer value from 1 to 30. 0 will set no transition.

Transitions Table:
0-None
1-CrossDissolve
2-FadeOut
3-FadeIn
4-FadeOutIn
5-LeftRight1
6-LeftRight2
7-RightLeft1
8-RightLeft2
9-UpDown1
10-UpDown2
11-DownUp1
12-DownUp2
13-FromUpLeft
14-FromUpRight
15-FromBottomLeft
16-FromBottomRight
17-MoveLeftRight1
18-MoveLeftRight2
19-MoveRightLeft1
20-MoveRightLeft2
21-MoveUpDown1
22-MoveUpDown2
23-MoveDownUp1
24-MoveDownUp2
25-RandomPoints
26-RandomBoxes
27-Center1
28-Center2
29-CenterZoom1
30-CenterZoom2

::::::::::::::
Printimage
::::::::::::::
Displays the Image Print dialog with lots of user settings!

viewplus printimage

::::::::::::::
SaveImageNoDialog 
::::::::::::::
Allows you to save the currently viewed image to any of the
formats listed. You must supply imagename, path, and extention (format)
Supports jpg, pcx, png, bmp, tga, gif and tif.

Example:
viewplus SaveImageNoDialog,myimage,c:,jpg